package org.hxzon.cyclone.collide.fine;

import java.util.List;

import org.hxzon.cyclone.contract.Contact;

public class CollisionData {

    //存放碰撞信息
    private List<Contact> contacts;

    /** Holds the friction value to write into any collisions. */
    public double friction;

    /** Holds the restitution value to write into any collisions. */
    public double restitution;

    /**
     * Holds the collision tolerance, even uncolliding objects this
     * close should have collisions generated.
     */
    public double tolerance;

    public void reset() {
        contacts.clear();
    }

    /**
     * Notifies the data that the given number of contacts have
     * been added.
     */
    public void addContact(Contact contact) {
        contacts.add(contact);
    }
}
